package com.zhinong.mapper;

import com.zhinong.entity.Product;
import com.zhinong.entity.Products;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SearchMapper {
    List<String> selectHotTags();
    List<String> selectSearchHistory(String userId);
    void insertSearchHistory(@Param("userId") String userId, @Param("keyword") String keyword);
    List<Products> searchProductsByKeyword(String keyword);
}